#ifndef _MEMCACHE_MEM_SLABS_H_
#define _MEMCACHE_MEM_SLABS_H_

class Block {
    Block* _next_block;
    char _data[0];
};

class MemPool {
public:
    char* memory_allocate(int size);
    void memory_deallocate(char* ptr);
private:
    char* _free_block_head;
    char* _used_block_head;
    char* _mem_base;
};

#endif
